<script>
export default {
  name: 'PageTools',
  props: {
    title: {
      type: String,
      default: '提示信息'
    },
    type: {
      type: String,
      default: 'warning'
    }
  }
}
</script>

<template>
  <div class="pageTools">
    <div class="left">
      <el-alert :title="title" :type="type" effect="dark" :closable="false" show-icon></el-alert>
    </div>
    <div class="right">
      <slot></slot>
    </div>
  </div>
</template>

<style scoped lang="scss">
.pageTools {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
</style>
